package com.zr.sparesubclass.mapper;

import com.zr.sparesubclass.model.PlantPerson;
import com.zr.sparesubclass.model.SpareSubClass;
import com.zr.sparesubclass.model.SpareSubClassAddVo;
import com.zr.sparesubclass.model.SpareSubClassUpdateStatusVo;
import com.zr.util.ResultVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by Administrator on 2018/12/29.
 */
@Mapper
public interface SpareSubMapper {

    int queryCount(SpareSubClass spareSubClass);

    List<SpareSubClass> queryPage(SpareSubClass spareSubClass);


    int spareSubClassAdd(SpareSubClass spareSubClass);

    int spareSubClassupdate(SpareSubClass spareSubClass);

    List<PlantPerson> queryPlantPerson(PlantPerson plantPerson);



    List<SpareSubClass> queryPageplantPerson(PlantPerson plantPerson);

    List<SpareSubClass> queryByName(@Param("name") String name);

    List<SpareSubClass> queryByCode(@Param("code") String code);

    SpareSubClass queryById(@Param("id") Integer id);

    int updateStatus(SpareSubClass spareSubClass);
}
